working genorator

adds input vlues and generates grid