Implemented M101J-4 "Implement hw1".