Register and Main classes