Print out text from constructors to make example neater. Added index code.