final hw4 submission

This is the cppcheck tutorial created by @htsai010 , @lpeng003 , @afan004 , and I.