Preparing classes to receive ids