commit of dom, if else and objects exercisizes