added lib and test file