def get_messages(soup):
    """Parses the messages from the Soup object."""
    raw_messages = soup.find_all('p')

    # There are two <p> tags for every message, so just get rid of the
    # odd-numbered ones
    raw_messages = raw_messages[1::2]

    return [message.text for message in raw_messages]