Problem 2
add utility methods