improved the simple example in analyse