Implemented generic cost value object and alignment specific
implementation.