add turn function
Merge pull request #4 from ZhangYunjie/feature/turn

add turn function