made changes in constants and add dynamic code in week.rb