Example code for the Portfolio Analytics project proposal for Google Summer of Code 2013