Add sampledBy method