main constructor for analyzing, not done yet