Struggling more with initialization of state