implemented basic time function and display it on seven segment display