Re-using existing software

Problem description:   we need to write a program (software) to solve a new problem:

  • Write the NewClass class to solve a new problem:                                                                                    

How can we do this efficiently (i.e.: use the least effort as possible)