move reading from file to Clock class