functions time

Complete the exercises.