R Programming: Assignment 3 (fix).