Functions class excercise