Added melody class.