this is a source code of functional programming in scala source assignment one (funset) answer