add block to initialize class