Updated example from scratch