How was the exercise? Here's the solution.
Review it and compare it with your result. Really cool to be able to eliminate the type and that the compiler infers it automatically.
If you're using API 26, you may find some differences. As findViewById is now generic, the solution would be something like:
val textView = findViewById<TextView>(R.id.textView)