Code I wrote with learning purposes.