Flaky Pastry with Spinach and Cheese

300g fresh spinach

3 tbs olive oil

3 cloves garlic, minced

1 egg