Some code I wrote for my REU summer 2013