OK, I think I managed to do this eventually...bit tricky though :/