code related to 2013 MUD thesis project