Work on writing stack in ruby