proglang hw2 passes all tests