added class factory for instruments library