implementation of time signature and bar lines