Completed the two exercises for functions checkpoint