Beginning refractoring. Learning how to do it properly and how to use a module pattern.