Implemented M101J-6 "Implement hw3"