finished some CS 171 assignments