arbitrary samples implemented, should work fine