First version. With bugs :)

Signed-off-by: Rachelov <alternating.mick@gmail.com>