Extract Frame class to his own module.