update R markdown file for hw2