adding class types example