Implemented reverse()