project 4 and 5 for CS 342