Added method for classifying instance

Still todo: get meaningful result from value of classifyInstance()