Lewis Hamilton thinking of extending career beyond 2023