Libraries and some code