excerises for fp in scala