Added quaternion template