Initial solution (similar to example).