Construct a Python program that can extract the name of an author from a given book title.
title = 'Harry Potter and the Sorcerer's Stone'
def extract_author(title):
    title_words = title.split()
    for word in title_words[::-1]:
        if word[0].isupper():
            return word

print(extract_author(title)) # Potter