Implemented a mini-lib