refactor class SimpleQueue