add motion_flag
add get_num func in class
add main.cpp
main test
write ball and plane