Correct Exercise 1-22's solution

Tabs are now handled properly and the instructions are better followed.