Add init() method for entities