Made reusable IO stuff in application class, and made AnimalPanel class
use the new reeusable methods we made.