moved timer class from LayoutDemo to Timer package