turn stuff into a class