some code I have written for practice.