refactorred code
refactorred and finished manual brew exercise