Added the framework of views/pet and test case