added code for practice