Written ValueHandler (another solutionj for task8).