added rotatingAmount variable to function
added workspace file to idea folder