finished program 4