finished the code