Make a method for your "view"

Just thought it might be nice to function this out, feel free to ignore this pull request.