added hilariously overengineered solution to Ch1/Ex2