Did excercise 29 logic