adding get_coords method to Atom class