changed API and type name. added show method and tests.