refactoring breakout.js into input, output and model
refactoring is done