Adding prototype to the class