Programming Assignment 2, R language. Duy Bui (duybuile@gmail.com)