added $language = 'php' to the contructor