Assignment 2: functions and currying