Lib added

Lib and source code