added character method to factory