puzzle solved by Carlos Rivas