This answered my first question. However, using constants would be a bit better.