added print methods for class object to debug stack