Now accepts hours array as constructor argument