Reusing bugged source code to support novice programmers in debugging tasks