add example for weighted points