finished task 2 - not sure if this is done in the right way
up to second point start from here