ML - assignment 9 - init