# Pull in common_phrases3 as a module so we can call its functions.
# Keeps things modular and organized; makes it easy to see where each function comes from.
import common_phrases3 as phrase_module

def main():
    print("Running chat3.py directly...")
    print("This is what __name__ is:", __name__)
    name = input("Enter the name of the person to greet: ")
    print("Supported languages are English, Telugu, French, and German")
    language = input("Enter the language code (eng, tel, fr, ger): ").strip().lower()
    print()
    phrase_module.say_hello(name, language)
    print("\n It was very nice to meet you!\n")
    phrase_module.say_goodbye(name, language)
    print()

if __name__ == "__main__":
    main()
