WriteDetector added simple declareVariables method()

You forgot to add it