Added Task1 Part 2 method