first try for procedural pattern.

Signed-off-by: Thomas Helmke <thomas.helmke@gmx.de>