rewrite of MyWorkHours to Scala + some new functionality