Implementation of the programming assignment 2 (R-class)

Added reference to the notes