Refactored and added method to pass landing test