CSCI580_Fall_2014: 2.1 version of homework3, remove warnings in hw3