A batting masterclass from Steve Smith took Australia to 197-3 at tea on day two of the second Test against Sri Lanka in Galle on Friday, leaving the visitors just 60 runs behind.