Learning Scala and practicing math