added ability to parsing functions and max function as example