Modularized the code added a new class for bird