added partial version of class 3, hw1