changing to a class