Extracted algorithm to class