Drawing chart encapsulated into new SleepChart class