The graph of a quadratic function has roots at -3 and -7 and a vertex at (-5, 4). What is the equation of the function in vertex form?