Added prettyPrint() method and compiled.