Add Mel class and change division into frames