Added print_char function