naive algorythm implemetation added