creating classes Animal and Dog