Formulating map rules

Implement map rules to build specific output results.