Solved 514 rails

Basic stack problem