move calculation of summary to its own file
The selector pattern post