Added task 1 and task 2 need to complete rest of tasks

Youl could also instantiate `RATE`, the same way then use a simple `if RATE` to capture the total calculation.