Renamed Solution class to Stack class, renamed push and pop methods, pop refactored to take constructor.