public class Foo { public int x; public int incrementX(int by) { Crementer in = new Crementer(by); this.x = in.crement(this.x); return this.x; } }