my code for my cs127a class