Console logging returned object