Update code-hw3.R

Moved period line 38