First draft of lib