hw2 code sharing for debugging