Implement the miles method in the Flight class