the code above generates the following result