The solution I had in mind.