Update code-hw3.R

Changed period