Added functionality to compile and add new methods to the class