Commit 7: finished logging functions for year and month - tested with data.txt file