Replaced direct Character pointer with smart pointer usage to allow flexible Character management.