R programs from last assigment for r prog course.