Implemented and applied the Vector2D class.