first two parts of third task