Solution to Coursera Programming Mobile Application for Android Handheld System Week 2