Project for CS336, Team S4.