phpClass that I wrote