added a get character method