How do you make a lucky block in Minecraft Education Edition?

How do you make a lucky block in Minecraft Education Edition?
How to Make a Lucky Block in Minecraft Using No Mods

Dig a 3 x 3 hole that is 3 blocks deep.
Place an observer block “face” up in the middle of the hole.
Get a command block by putting this command in the chat box:
Fill in the rest of the hole so it flushes with the ground.
Break the block and see what happens!

How to Make a Lucky Block in Minecraft Using No Mods
  1. Dig a 3 x 3 hole that is 3 blocks deep.
  2. Place an observer block “face” up in the middle of the hole.
  3. Get a command block by putting this command in the chat box:
  4. Fill in the rest of the hole so it flushes with the ground.
  5. Break the block and see what happens!