Updated Task 1

Reworked Task 1 to run more efficiently.