separate Library and Sample into corresponding modules