switched to oop coding model

Signed-off-by: David Hoffmann <david@hoffmann-projects.de>