repository for assignment2 of programming with R