Changed some things in Erik's example