got test script for hw5 working. ready to start building code gen func