code for study