commit code for mit-5

Please help to review code for MIT-5