made a fatal error. Put data in a class