Make a Class for a Foreach Loop