code for my Mobile Dev class