class Book(val name: String) : Comparable { override fun compareTo(other: Book) = name.compareTo(other.name) } fun box() = if(Book("239").compareTo(Book("932")) != 0) "OK" else "fail"