HW4: Corrected padding