some methods for lab7