serial class and examples