Return object instead of class