just write some code for LDD study