You may only have one single public class in a source file. If you make class ValHold public too (within its own source file), it is accessible in any other class. However,
you should use getter/setter methods for ValHold instead of manipulating i directly.