Adding updated solution