Implemented hw1