Second attempt. This is the correct output.