make shapes appear in standard out...implemented using inheritance