solution to problem4, was able to leverage numFromSeq function from problem3 so I moved that function to the utils library :D