Solved #5, #6, #8 and #9 - some more helpers