complemented

Added actual code and comments requested for the assignment
test
finish