Code for CSC 250