Implementation of Dr. Pienaar's assignment