CD Function

Seems too easy to be true, but all that i looked into said the same
thing. Didn't specify the variables because wasn't sure what they would
be. Let me know if you find something.