Wrote part of galleries models