Program compiles and runs with refactored out Day object