A fancier class example

Many people are complaining that there isn't an example of how to use the "map" syntax. Here's a basic example.