Implemented lookup_symbol