finished with the code