added unit tests for cuts
moved step3 code