this is a source code of my answers for functional programming in scala course assignments