So close. Still need to work out the logic.