Code for library up to additional exercises

pull request for library exercise up until additional exercises.