Ruby Implementation of Stack