solver working in the most basic way - Milestone 1