removed all the System.out, recorded all the actions in a Set