Reestructured method set_height and set_width from class Character.