using samples instead of examples