fix Assignment3.R

Somehow this got reverted