creating a library model