Added getName, getState, and getDetails methods below. These methods are useful for printing out messages and even debugging.