moved to lib folder
moved code to example