quaternion sample program