Implementation of the new library

this is for code clarification purpose