adding Way class