Final code for article 06