put addressof into separate class