method and struct example.