solving codes