minor modifications
solution to the first exercise on fMRI signal