Wk1a lect: functions