Updated example 4 mainly with better graphics..