Creating a clock bean using java beans