Adding motion.py