first executable version. Next step: documentation of the functions