CSCI580_Fall_2014: 1st version of hw 6