Implimented range based for loops