coding test corrected