Example helper method

Added helper method to Practical 1 Part 4