Implemented simple solve method in GUI.