moved r files to the "code" folder