added file for working with methods
added method for perimeter
make use of pointer