Finish the exercise 1.22

 - Reuse 1.21 code
 - Alter ignore file to ignore compiled files