example using objects instead of strings