Bug injection to stream interface
Refactoring of Main.java, deduplication