Added missing return and end for a method of task 48