completed basic tasks and one extra, added comments to explain what the changes are doing