Implemented M101J-5 "Implement hw2"