added is_four_digits() function