change to meet as much as possible the structure of code example of ember guide