Renamed method and added sample test