codes done for cs184 course