assn4 added. direct cache