Class With Solving Logic Added

Program can now be compiled and ran.