tasks 3--6