started working on window and vector maths