updated problem definition and defined variables