Changed to . notation instead of array