Add rotate function and a shell script for running
Add rotate function and a shell script for running