Task #2 solving

Please add my solving for task #2