Matches hw1 minus allocations