reusable library

added content to library.py