finished part 2 of practical homework #4