code of the first two class