Initial work on library