Assigns a child to a class