Homework5: functions set up.