working with all in classes