CS - task three and four