Suppose you are designing a “creature creator”
for a video game. The player should be given access to a list of various forms from a fixed set of
body parts: heads, bodies, arms, and legs. A creature must have exactly one head and one body,
but may have any number of arms or legs. Write a
set of routines for editing creatures (a single creature in this instance would be a module) in the
proposed game. Your routines should provide for
the ability to replace one body part instance for
another, insert additional arms or legs, and delete
existing arms or legs.