playing with random child classes but not successfully