Added factory class for creating a body