Second exercise solved