A simple solution for G51PRG module's exercise at University of Nottingham. 2013/2014