code for the projects for cs446 @ umass amherst