New class for R and the necessary libraries