Write operations program Ex 3