#31 Reverse function implemented.