Complete R files for peer assessment