refactor of the example 10-Breakout-like