Completed Task 2

Except all inputs as q