finished code test