commit code for mit-5
commit more cases
Merge pull request #5 from baodemo/mit-5

done. MIT-5