Updated the MainActivity file after finishing testing out the activity life cycles