Fixed the constructor method scope.