My Engineering statis simulator code