updating lecture6.r files plus getting dataset ready for merging