refactored code - chapter 4 reviewed
fixed CSS