finished of part 1.2 - added comments