Add the view factory code and smaple code.