Three small coding challenges