Exo7 -> inv.c
Merged exo 6 and 7