frame class (main class)