Update function walk- HomeWork