Refactored problems 92, 96, 97 & 99