added nested resources, created square model