created method print_styled_text_line