Exercise 2: Changed layout to horizontal