Rename 'sam' to 'sample' (here, and at other places in the file), that just makes it more explicit.