implemented anon spy return values

This is an alternate implementation of #3.