code for project-1 2nd-widget