deardenF function complete and passes tests. Might be good to include some more extreme test data though.