basic lab03: functions exercise