Some code for an EEG study