Completed program, works as intended.