beans class