add simple lib

simple lib for basic functions