Update solution 2.