homework4 stacks updated in index