Cleaned up csce322a3p2.pl