creates solver class and solve method structure