class ĠBook ( val Ġname : ĠString ) Ġ: ĠComparable < Book > Ġ{ ĊĠ Ġoverride Ġfun Ġcompare To ( other : ĠBook ) Ġ= Ġname . compareTo ( other . name ) Ċ } Ċ Ċ fun Ġbox () Ġ= Ġif ( Book (" 2 3 9 "). compareTo ( Book (" 9 3 2 ")) Ġ!= Ġ 0 ) Ġ" OK " Ġelse Ġ" fail " Ċ