some programs of chapter3