Commit the abstract class for stacks and queues