initial version of skeleton

This is the generated and slightly modified version of code by Tomi