How to use classting for multi-child parents