making models an instance variable