class prepare