Separated algorythm into different classes