First version of contr

Signed-off-by: Alexey Korolev <akorolex@gmail.com>