working in sample clock
now we have to windows
now we created a struct to support the clocks