Average cost and journal example