Created class to represent 2d vectors