Assignment 3 for CodePath Android class