Refactor homework
Operate on pointers in homework