chapter 9 - Added main activity and menu click event