removing the dependency of activemodel gem