coded layout based from example1