implemented binary clock - ready for testing