cosmetic change
fixed bug (return value of coordinate function is wrong)
added bar.coordinate function