require should be added to the top of the file not right before the method.