Added sample for struct with method