making php object for book and contact