hw3, added doxygen comments