first code and output