First code of lecture5