solutions 5 & 6