[Ashok/Simon] implemented basic indexing for method declarations