adding preferences example