Made it even simpler and made print function more pleasing to the eye.