My First Scala Exercise Sample Code