added references hierarchy
remove redundant checks
made easier 2 task
made 7 task