improved syntax tree
solved excercise 4