Code example from the book

The solutions for the 2nd edition of the Kotlin books are here: https://bignerdranch.com/kotlin-2e-solutions