Finished code and it was correct value on print out