First stab at the problem