encapsulates solve logic into another file and module