hw3, tasks 4 and 5 are added