Added a common method for Questions 13 & 14