Implemented Queue and Stack interface classes