A simple program to find the empirical formula of a compound