Working example of simple scoped controller