Method separation

Defined a new file to calculate the subset