Updated main to invoke toString implicitly