tried to make email class better