simple solving implemented