for cs251 project