Added pendulumn simulation

Added pendulumn simulation in periodic motion.