simplified function implementation
more complete Hours model