final code TP8