solution to the spruceups problem