Updated example to be more dynamic