added solving functionality