homework for DOM manipulation

part of the homework