Changed the object creation so inheritance can be applied, created basic text object prototype