Create Quaternion class