update ex04 (reading binary files).