added comments and tested