Changed signature of solve() to solve(self, data, dictionary)