First revision (not working) in Kotlin