@OP: In case it's not already clear, in each of those code snippets, you are only returning one value. When you "added the second field", you weren't adding a second value that's being returned. You added a second argument to the constructor of the single object that's being returned.