Could be missing something, but I think this is right.