sample impl of poker source