debugged wk 1 code