Rotate a object using touch events !

Hello all, I want to be able to rotate an object   a circle   using my finger and calculate the degrees it has moved. I used this as a guide http://coronalabs.com/blog/2014/09/16/tutorial-swiping-an-object-to-fixed-points/ 

and tried to include this ,   http://docs.coronalabs.com/api/event/gyroscope/zRotation.html

it is as far as i got, I am able to move the object with the first link , but lost for ideas at this point. 

Any help is appreciated. 

JZ