Program structure

 

This program will be posted soon on BSD.