Foundations of Programming - Refactoring Code