Implement to_a method