Update solution 1 using substitution block