homework for cs76.tv (Android)