creating class.SMA.php