code for practicing.