cleaned up example a bit