modified to_s and made simple input loop in Driver