Renamed member 'number' to 'value'
Rename method 'getNumber' to 'getValue'
Add stopWithValue method
Move all output to main loop