basic OOP exercises for PHP