Commit 9: Code extracted into methods (variable passed to methods as argument)