Implemented Drawing Function