Added instance() method to all classes