change: @mydata to class variable @@mydata