adding code of version 0.1 of tool