Design a program in Python to classify data into one of two categories
data = [4, 5, 8, 1, 9]
def classify_data(data):
    if data[0] <= 5:
        return 'Category A'
    else:
        return 'Category B'

x = classify_data([4, 5, 8, 1, 9])
print(x)