Working example using annotations