added example of returning pointer to stack memory.