Created viewbase class