Subclass additions

Refactored Entity and created subclasses of Entity for Triangle and
Rectangle