Create events.class.php