First part done. Wrong input control missing.