code from the video