added old rotation sample in old_rotation.cpp