code for courseras android program