implements Contents class