added lib file, calling it from main