Coded most of the proj besides replacement policy