implemented first part 4 test