Refactored problems 74 & 79