working copy of the main class