#!/usr/bin/python3
"""
checkk if object is an instance of a class that inherited from class
"""


def inherits_from(obj, a_class):
    """
    check if a object is exactly an instance of the specified class
    Parameters
    ----------
    obj : is a instance of the class
    a_class : is a class
    Returns
    ----------
    True if the object is an instance of the class or False.
    """
    if (type(obj) is not a_class):
        return(issubclass(type(obj), a_class))
    else:
        return False
