Object-oriented result values

@charlierudolph I wanted to do this for a long time.