ex21: defining functions and doing math with those functions