how to integrate similiar functionality in own project