initialize hw1 for ai.