Revised the types for an intial toString method