based on http://coreywoodcox.com/sprinklers/