implemented Timer class
working tests