added beginnings of code
start of lib