A stab at actually calculating coordinates - almost hits the first slide and does not work for the rest... needs more work