Transition from unit squares to area formula