modified example to show more implicit typing