Implementation of getattr (WIP)