Greece, Eurogroup agree to four month bailout extension