Got half equation generation done