MATH FUN Functional Programming Assignment