Changes to main method and Reaction class