Class dynamic initialization