adding location class