copied codecademy code for practicing layout.