just a realization of ios patterns