updated notebook with (simple) score function