Two ways to create a custom selector