Modified example.go to receive files