adding methods to the abstract class
removing debugging rectangle