classes complete, but Main gives error messages