add function in kotlin code example Example: make function kotlin fun main() { println("This is a function") }