finished the Fetch_Decode, and Write_mem functions