Adds and does programming exercise ex4