Main And Frame Class