Add method to reverse digits.