Created the basic function generator. (cc. #12)