Changed constructor to take char instead of str