Implemented reverse() and isFull() methods