Creating class.ema.php