Second approach to implementation (MOCK)