added example for struct and pipes