Added part 2 of an exercise using implode and explode within a new function