making the class php5.3