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

make methods more dynamic.