basic lab03: functions exercise, now actually using partially applied function