code passes three tests