Created quaternion class