Use Java 7
Change receving type of Output
Extract Output classes