added shape registry service, added shape factory