Learning object oriented programming in JAVA and Scala