Implement basic stack in ruby