@staticmethod
def format_alexa_response(speech=None, card=None, title=None):
    """Formats a response to be returned to Alex including speech and a card.

        Args:
            speech (str): The text for Alexa to say.
            card (str): Text for the card.
            title (str): Title for the card.

        Returns:
            None.

        Examples:
            >>> ADAPI.format_alexa_response(speech = "Hello World", card = "Greetings to the world", title = "Hello")

        """
    response = {'shouldEndSession': True}
    if speech is not None:
        response['outputSpeech'] = {'type': 'PlainText', 'text': speech}
    if card is not None:
        response['card'] = {'type': 'Simple', 'title': title, 'content': card}
    speech = {'version': '1.0', 'response': response, 'sessionAttributes': {}}
    return speech
