Finished problem 3! added a reverse function to the queue.