Example of functions having single responsibility