using method print_styled_text