sample code to demo multiple returns from function