completing fucntions exercise