classes separated from other code and placed to classes.php