Wrote a basic quaternion class