programming and algortihms 2/ coursework6