remade ex4, created ex5
completed ex5