create fp1.scala

First functional programming