Scala Example on various fundamental of scala