Wrote basic queue methods