my 1st try to create the program 
for calculating laser resonators