Added a base classifier function