Completed the init() fonction