Understand the code written in the notebook and then create a working version of the code using react next js shadcn components