PHP exercises made in class