change AnaInput class to singleton class