worked on the second example