an exercise for building functions