Serials Class in UML and code