in class. created a class and method reverse that reverses the string.