Refactor Frame and add Chart prototype