skeleton for dialog class, (don't think it works)