Add S4Object class.