code produced while doing my studies.