Adding the method of rotate