#!/usr/bin/python3
"""Contains function to add integers.

   Typical usage example:
   foo = add_integer(foo, bar)
"""


def add_integer(a, b=98):
    """ Adds two integers.
        Args:
            a, b (int): two integers to add"""
    if type(a) is not int and type(a) is not float:
        raise TypeError("a must be an integer")
    if type(b) is not int and type(b) is not float:
        raise TypeError("b must be an integer")
    return int(a) + int(b)
