removed the redundant hw2 code