Sample code downloaded from Playground will result in an error

Thank you for catching up. The last one is already posted in another thread.