Scala While Loop Example