investigating pickling classes with methods