working to add month view and to understand the given functions