Project 3.1

Separated the message and location functions with use of switch/case. It
didn't break!