adding PHP class and the index file