getClass takes argument and return if it matches location