can function results be objects?