Added a constructor to the character class