Replace src code with a lib