* MJ: simplified to use newer classes * MJ: Add license information Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>