Updates sample for example of using foreground and background selectors