fourth task's instructions added

+ small optimization