Final question requirement added. Made me realise that there is something more complicated than I originally thought