Solve() method added