def grade(value):
    """
    Returns a string based grade from a number.
    1: Good
    2: Fair
    3: Fair
    4: Poor
    """

    if value == 1:
        return 'good'

    if value == 2 or value == 3:
        return 'fair'

    if value == 4:
        return 'poor'