Implemented 99%

Signed-off-by: Maksym Fedyay <mcsimf@gmail.com>