Created some methods in models