simple classifier implementation