Working example

very rudimentary but it works