refactored email class , more readable