Implement first version

Signed-off-by: Harri Kovalainen <hakovala@gmail.com>