encoding fashion rules into mathematical data structures (part one) – badass data science