finished moving data logic to library code