implement a sample