Misc. coding exercises