first iteration of excercise2