Enhance an existing python program to include a function
def hello():
    print("Hello world!")
def hello():
    print("Hello world!")

def goodbye():
    print("Goodbye!")

def greetings():
    hello()
    goodbye()

greetings()