Another application for chapter 2-Second try