Mojo class ported to Kotlin