Removed from api method type() non used
Created wrapper to class object