Replace demo php class with new version