declare all members public, it was struct before turning into class