Design a logistic regression model in Python to predict the class of a given point.
X = [0.3, 0.7, 0.8]
y = [0, 1, 0]
from sklearn.linear_model import LogisticRegression

model = LogisticRegression()

model.fit(X, y)

def predict_class(X):
 pred = model.predict([X])
 return pred