here is responsive code for the sample work.