Added comments - thinking through side effects, when to be functional