add the solved code