Code I wrote when I was reading cplusplus.com tutorials...