sample and lib