implemented getBottom() method