try to write the code, line per line.