Add the final code

Signed-off-by: Alexander Cogneau <alexander.cogneau@hotmail.be>