replaced ugly if/else weekday conversion in create_coding with nice dictionary