basic methods using functions explained