exercises functions 2-7