CS157B homework