add solve equation method