Added tasks 4 and 6