modified animal template in order to have separate components to reuse