Can you instantiate single function of a class?