started on creating table functionality for intervals