study code snippet