ex 19: functions and variables