Creating location model