Implemented main method

Signed-off-by: Maxim Timofeev <maxtimv@gmail.com>