Assignment 2a for the android course