merging more representative example from @cloudchen #3