notes for CS247