first version of the code

Signed-off-by: Delian Delchev <delian.delchev@gmail.com>