added comments to assignment.cpp