transformed into a class