correcting namespaces classes
updated PHP block